<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'benefactor-batch-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'receipt_number'); ?>
		<?php echo $form->textField($model,'receipt_number',array('size'=>60,'maxlength'=>256)); ?>
		<?php echo $form->error($model,'receipt_number'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'received_date'); ?>
		<?php //echo $form->textField($model,'received_date'); ?>
		<?php 
			$this->widget('zii.widgets.jui.CJuiDatePicker', array(
				'attribute'=>'received_date',
				'model'=>$model,
				// additional javascript options for the date picker plugin
				'options'=>array('showAnim'=>'fold','dateFormat'=>'yy-mm-dd'),
				'htmlOptions'=>array('style'=>'height:20px;'),
			));
		?>
		<?php echo $form->error($model,'received_date'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'notes'); ?>
		<?php echo $form->textArea($model,'notes',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'notes'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'id_liaison'); ?>
		<?php echo $form->textField($model,'id_liaison'); ?>
		<?php echo $form->error($model,'id_liaison'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'id_benefactor'); ?>
		<?php echo $form->textField($model,'id_benefactor'); ?>
		<?php /*echo $this->widget('CAutoComplete',array(
			'model'=>$model,
			'attribute'=>'id_benefactor',
			'data'=>$benefactors,
			'multiple'=>false,
			'htmlOptions'=>array('size'=>25),
		)); */?>
		<?php echo CHtml::link('Create new Benefactor', array('Benefactor/create')); ?>
		<?php echo $form->error($model,'id_benefactor'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->